package com.qdairlines.service.log.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdairlines.dao.log.LogMapper;
import com.qdairlines.entity.log.Log;
import com.qdairlines.service.log.LogService;

@Service
public class LogServiceImpl implements LogService{

	@Autowired
	private LogMapper logMapper;
	
	@Override
	public boolean recordLog(String requestPath, String requestIp,
			String workcode, String inputParam, String packageName,
			String methodName, String time,String type) {
		Log log = new Log(workcode,requestPath,requestIp,inputParam,packageName,methodName,time,type);
		return logMapper.recordLog(log)>0;
	}
	
}
